const buuid = require('binary-uuid')

const {
    uuidv4,
    createMany
} = require('../api/qrcode')

let records = [1, 2, 3, 4].map(i => {
    return {
        uuid: buuid.toBinaryUUID(uuidv4())
    }
})

const id = buuid.toBinaryUUID(uuidv4())

records[2].uuid = id
records[1].uuid = id

createMany(records).then(console.log)